package com.bestow.flowable.mapper;

import java.util.List;
import com.bestow.flowable.domain.WflApproveCandidateRule;

/**
 * 候选人审批规则Mapper接口
 * 
 * @author liliu
 * @date 2022-09-07
 */
public interface WflApproveCandidateRuleMapper 
{
    /**
     * 查询候选人审批规则
     * 
     * @param candidateRuleId 候选人审批规则主键
     * @return 候选人审批规则
     */
    public WflApproveCandidateRule selectWflApproveCandidateRuleByCandidateRuleId(Long candidateRuleId);

    /**
     * 查询候选人审批规则列表
     * 
     * @param wflApproveCandidateRule 候选人审批规则
     * @return 候选人审批规则集合
     */
    public List<WflApproveCandidateRule> selectWflApproveCandidateRuleList(WflApproveCandidateRule wflApproveCandidateRule);

    /**
     * 新增候选人审批规则
     * 
     * @param wflApproveCandidateRule 候选人审批规则
     * @return 结果
     */
    public int insertWflApproveCandidateRule(WflApproveCandidateRule wflApproveCandidateRule);

    /**
     * 修改候选人审批规则
     * 
     * @param wflApproveCandidateRule 候选人审批规则
     * @return 结果
     */
    public int updateWflApproveCandidateRule(WflApproveCandidateRule wflApproveCandidateRule);

    /**
     * 删除候选人审批规则
     * 
     * @param candidateRuleId 候选人审批规则主键
     * @return 结果
     */
    public int deleteWflApproveCandidateRuleByCandidateRuleId(Long candidateRuleId);

    /**
     * 批量删除候选人审批规则
     * 
     * @param candidateRuleIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWflApproveCandidateRuleByCandidateRuleIds(Long[] candidateRuleIds);
}
